﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MegaBitProject.Controllers;

namespace MegaBitProject.Logging
{
    public class Logger
    {
        private List<LogMedia> logMedia;

        public Logger()
        {
            logMedia = new List<LogMedia>();

            logMedia.Add(new EmailLogMedia());
        }

        public void LogException(String message)
        {
            //message comes here

            foreach (LogMedia media in logMedia)
            {
                media.LogMessage(message);
            }
        }
    }
}